package com.ssm.wechat.dao;

import java.util.List;
import java.util.Map;

public interface WechatUserDao {

	//查询关注的用户是否已经存在,判断当前状态是关注还是取消关注
	Map<String, Object> queryWechatUserSubscribe(Map<String, Object> map)throws Exception;

	//更新已经存在的用户，但未关注，修改为关注状态
	void updateWechatUserSubscribe(Map<String, Object> map)throws Exception;

	//增加关注公众号的用户信息
	void addWechatUser(Map<String, Object> map)throws Exception;

	//查询已存储的用户的openid
	public List<Map<String, Object>> queryWechatUserOpenid()throws Exception;

	//分页查找所有的微信用户信息
	List<Map<String, Object>> queryWechatUserByList(Map<String, Object> map)throws Exception;

	//实现微信信息与family信息的绑定
	void updateWechatUserByFamily(Map<String, Object> map)throws Exception;

	//根据ID删除一条记录
	void deleteWechatUserById(Map<String, Object> map)throws Exception;
}
